package com.bw.dg.service.impl;

import com.bw.dg.dao.AssetDao;
import com.bw.dg.dao.LogDao;
import com.bw.dg.pojo.Asset;
import com.bw.dg.pojo.Log;
import com.bw.dg.service.AssetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Service
@Transactional
public class AssetServiceImpl implements AssetService

{

@SuppressWarnings("all")

    @Autowired
    private AssetDao assetDao;
    @Autowired
    private LogDao logDao;
    @Override
    public List getAssetList() {
        return assetDao.getAssetList();
    }
    @Override
    public List<Asset> findByXid() {
        return assetDao.findByXid();
    }
    @Override
    public String[] del(String id) {
        return assetDao.delete(id);
    }
    @Override
    public Asset add(Asset asset) {

        return assetDao.add(asset);
    }

    @Override
    public Asset findOne(Long id) {
        return assetDao.findOne(id);
    }

    @Override
    public String update(Asset asset) {
        return assetDao.update(asset);
    }

    @Override
    public List findList() {
        return assetDao.findList();
    }


}
